import time
from selenium import webdriver
from selenium.webdriver import ChromeOptions

option = ChromeOptions()
option.add_experimental_option('excludeSwitches', ['enable-automation'])
chromeddriver = "D:\prog\Python\SoftwareTest\cn\chromedriver.exe"
driver = webdriver.Chrome(chromeddriver, options=option)
driver.get("https://www.zhihu.com/signin?next=%2F")
time.sleep(3)
driver.find_element_by_xpath('//*[@id="root"]/div/main/div/div/div/div[1]/div/form/div[1]/div[2]').click()
driver.find_element_by_name("username").send_keys("18255431881")
driver.find_element_by_name("password").send_keys("bimozy521..")
time.sleep(3)
driver.find_element_by_class_name('SignFlow-submitButton').click()
time.sleep(3)
